import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    loading: false
  },
  getters: {
    GET_LOADING: state => { return state.loading }
  },
  mutations: {
    OPEN_LOADING: state => { state.loading = true },
    CLOSE_LOADING: state => { state.loading = false }
  },
  actions: {
  },
  modules: {
  }
})
